/*
 * Sale.java
 *
 * Created on March 23, 2007, 5:34 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.samlam;

/**
 * Class Sale
 * @author BrianB
 */
public class Sale extends RevenueSource{
    private int quantity = 0;
    private String productID;
    private Product product;
    /**
     * Creates a new instance of Sale
     * @id Sale id
     * @Sale Sale Method called
     * @param id Sale id
     */
    public Sale(String id) {
        super(id);
    }

    /**
     * Method get quantity
     * @return return quantity
     */
    public int getQuantity() {
        return quantity;
    }

    /**
     * Method calls set quanity
     * @param quantity Quantity
     */
    public void setQuantity(int quantity) {
        this.quantity = quantity;
        this.setDirty(true);
    }

    /**
     * Get Sale Quantity
     * @return Return Product
     */
    public Product getProduct() {
        return product;
    }

    /**
     * setProduct
     * @see See Product
     * @param product Sale Product
     */
    public void setProduct(Product product) {
        this.product = product;
        this.setDirty(true);
    }

    /**
     * Get Product
     * @return return Product
     */
    public String getProductID() {
        return productID;
    }

    /**
     * Set Product
     * @param productID Product productID
     */
    public void setProductID(String productID) {
        this.productID = productID;
        this.setDirty(true);
    }

    /**
     * Get Sale Description
     * @return Return Sale
     */
    public String getDescription() {
        if (description == null){
            
        }else {
            
        }
        return description;
    }
    
}
